package com.itheima.extendsTest.demo_3;

public class Emploay {
    private String name;
    private int id;

    public Emploay() {
    }

    public Emploay(String name, int id) {
        this.name = name;
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void works(){
        System.out.println("员工工作！");
    }
}
